package com.jiangfeixiang.springbootblog.service.impl;

import com.jiangfeixiang.springbootblog.dao.ContentsMapper;
import com.jiangfeixiang.springbootblog.entity.Contents;
import com.jiangfeixiang.springbootblog.service.ContentsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: 姜飞祥
 * @Description:
 * @Date: Create in 2019/1/27/0027 21:35
 * @param: $params$
 * @return: $returns$
 */
@Service
public class ContentsServiceImpl implements ContentsService {

    @Autowired
    private ContentsMapper contextsMapper;
    /**
     * 提交markdown文本数据
     * @param contents
     */
    @Override
    public void contentCommit(Contents contents) {
        contextsMapper.insertSelective(contents);
    }
}
